package win.urls.shorten.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import win.urls.shorten.dao.TemplateDao;
import win.urls.shorten.dao.impl.TemplateDaoImpl;
import win.urls.shorten.entity.Template;
import win.urls.shorten.service.TemplateService;

@Service
public class TemplateServiceImpl implements TemplateService{
	
	@Autowired
	private TemplateDao templateDao = new TemplateDaoImpl();
	
	@Override
	public Template getName(int id) {
		return templateDao.getName(id);
	}
	
}
